<script>
  $(function(){
    //var availableTags = ["ActionScript", "AppleScript", "Asp", "BASIC", "C", "C++", "Clojure", "COBOL", "ColdFusion", "Erlang", "Fortran", "Groovy", 
                         //"Haskell", "Java", "JavaScript", "Lisp", "Perl", "PHP", "Python", "Ruby", "Scala", "Scheme"];
                         
    var availableTags = [
      <?php 
        $count = count($this->data) - 1;
  
			  foreach($this->data as $key => $value){
			    echo "'" . $value['ds_eps'] . "'";
			    
			    if($key != $count) echo ", ";
			  }
      ?>                     
    ];                     
    
    $("#tags").autocomplete({source: availableTags});
  });
  </script>
  <div class="demo">
    <div class="ui-widget">
      <label for="tags">Tags: </label>
      <input id="tags" />
    </div>
  </div>